﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;
using Com.CMS263.DAO;

namespace Com.CMS263.BLL
{
    public class UserDocBLL : BaseBLL<UserDoc>
    {
        public UserDoc entity = new UserDoc();
        UserDocDAO dao = new UserDocDAO();
        public override UserDoc GetModel()
        {
            return entity;
        }
        /// <summary>
        /// 查询任务的提交内容
        /// </summary>
        /// <param name="worker"></param>
        /// <param name="state"></param>
        /// <returns></returns>
        public IList<UserDoc> GetListPaging(int ComId)
        {
            return dao.GetListPaging(ComId);
        }
        public UserDoc GetComm(int ComId)
        {
            return dao.GetComm(ComId);
        }



        /// <summary>
        /// 根据登陆用户ID查询资料信息
        /// </summary>
        /// <param name="userid"></param>
        /// <param name="page"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        public IList<UserDoc> GetListPaing(int userid, int page, int pagesize)
        {
            return dao.GetListPaing(userid, page, pagesize);
            
        }

        /// <summary>
        /// 根据登陆用户ID查询资料信息数量
        /// </summary>
        /// <param name="userid"></param>
        /// <param name="page"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        public int GetListPaing(int userid)
        {
            return dao.GetListPaing(userid);
        }
    }
}
